package xyz.xtt.exchange.utils;

import java.util.Date;

import cn.hutool.core.date.DateUtil;

/**
 * @author huqibo
 * @date 2025/02/20
 */
public class DateUtils {
	public static Long strToEpochMilli(String startStr, String suff) {
		try {
			String startData = startStr + suff;
			Date start = DateUtil.parse(startData);
			long epochMilli = DateUtil.toInstant(start).toEpochMilli();
			return epochMilli;
		} catch (Exception e) {
		}
		return -1L;
	}
}
